import request from '@/utils/request'

// 查询表具安装列表
export function listInstallInfo(query) {
  return request({
    url: '/installation/installInfo/list',
    method: 'get',
    params: query
  })
}

// 查询表具安装详细
export function getInstallInfo(id) {
  return request({
    url: '/installation/installInfo/' + id,
    method: 'get'
  })
}

// 新增表具安装
export function addInstallInfo(data) {
  return request({
    url: '/installation/installInfo',
    method: 'post',
    data: data
  })
}

// 修改表具安装
export function updateInstallInfo(data) {
  return request({
    url: '/installation/installInfo',
    method: 'put',
    data: data
  })
}

// 删除表具安装
export function delInstallInfo(id) {
  return request({
    url: '/installation/installInfo/' + id,
    method: 'delete'
  })
}
